package com.echo.yiwei.serivce;

import java.util.Map;

import com.google.gson.Gson;

public class BusinessSerivce {

	
	
	
  /***
   * 
   * 
   * 相当于分发业务请求
   * @param requestMap
   * @return
   */
	
  public  static  String   returnResultbusiness(Map<String,String> requestMap){
	  
	        if(requestMap.get("servicePath").indexOf("userInterface")>=0){
	        	requestMap.remove("servicePath");
	        return 	new  UserService().userSerivceBuiness(requestMap);
	        }
	        else{
        		
        		requestMap.put("status", "888");
        		requestMap.put("mes", "对不起,你访问的模块不存在，请核实后ERROR");
        		return new Gson().toJson(requestMap);
        	}
	  
	  
	             
//	  return new  Gson().toJson(requestMap);
	  
  }
}
